from PIL import Image

img = Image.open('huhx.jpg')
print(img.size) # (500, 340)

